package com.godfrey.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * description : 狗实体类
 *
 * @author godfrey
 * @since 2020-05-27
 */
@Component //注册bean到容器中
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Dog {
    @Value("阿黄")
    private String name;

    @Value("18")
    private Integer age;
}
